<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/29
 * Time: 20:49
 */

include_once 'redis.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<form action="doLogin.php" method="post">
    <table border="1">
        <tr>
            <th colspan="2">欢迎登录</th>
        </tr>
        <tr>
            <td>账号</td>
            <td><input id="username" name="username" type="text" value="<?php echo $_GET['username'] ?? '' ?>"
                       placeholder="账号"/></td>
        </tr>
        <tr>
            <td>密码</td>
            <td><input id="password" name="password" type="password" value="<?php echo $_GET['password'] ?? '' ?>"
                       placeholder="密码"/></td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <button type="submit">登录</button>
                <button type="button" onclick='window.location.href="index.php"'>还没账号？点击注册</button>
            </td>
        </tr>
    </table>
</form>
</body>
</html>
